package com.geqian.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.geqian.common.common.PageRequest;
import com.geqian.common.common.PageResult;
import com.geqian.common.common.ResponseResult;
import com.geqian.web.entity.Table;

import java.util.List;

public interface TableService extends IService<Table> {

    ResponseResult<PageResult<Table>> getTableList(PageRequest pageRequest);

    ResponseResult<String> updateTable(Table table, String token);

    ResponseResult<String> addTable(Table table, String token);

    ResponseResult<String> deleteTable(List<Table> tableList);

    ResponseResult<List<String>> getTableNames();

    ResponseResult<String> importTable(String tableName);

    ResponseResult<String> generateCode(Table table, String token);

    ResponseResult<String> uninstall(Table table);

}